how to find sum of odd numbers in java